var ohhh=document.getElementById("hhh");
    timer=setInterval(auto,1000);
    auto();
    function auto(){
    	var date=new Date();
    var year=date.getFullYear();
    var Month=date.getMonth()+1;
    var day=date.getDate();
    var xingqi=date.getDay();
    var zhou=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
    var hours=date.getHours();
    function totwo(x){
    	if(x<10){
    		return"0"+x;
    	}else{
    		return x;
    	}
    }
    var minutes=date.getMinutes();
    var seconds=date.getSeconds();
    var shijian=year+"年"+Month+"月"+day+"日"+zhou[xingqi]+totwo(hours)+":"+totwo(minutes)+":"+totwo(seconds);
    var timer=null;
    var timer=0;
    
    ohhh.innerHTML=shijian;
    }
    
    console.log(shijian);